import Loadable from 'react-loadable';

const loadingComponent = () => {
    return <div>loading</div>
};
const loader = (loader,loading=loadingComponent)=>{
    return Loadable({
        loader,loading
    })
}
export default loader